package com.awakensoftware.hunterserver.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.awakensoftware.hunterserver.repositories.ServerEntityRepositoryBase;
import com.awakensoftware.hunterserver.serverentities.ServerEntityBase;

public abstract class ServerEntityServiceBase<TServerEntityType extends ServerEntityBase> {

	@Autowired
	protected ServerEntityRepositoryBase<TServerEntityType> serverEntityRepository;

	@Transactional(readOnly = true)
	public TServerEntityType getById(long id) {
		return serverEntityRepository.getById(id);
	}

}
